import request from "@/utils/request.js"

export const getCommunityPost = (data) =>
  request.get("/api/community/posts/list", {params: data})

export const delCommunityPost = id =>
  request.delete("/api/community/posts/"+id)

export const addCommunityPost = data =>
  request.post("/api/community/add", data)
